package com.wxg.controller;

import com.wxg.service.TestService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author void
 * @date 2020/7/22 17:29
 * @desc
 */
@RestController
public class TestController {

    @Autowired
    private TestService testService;

    @GetMapping("/test1")
    public void test1(boolean flag){
        testService.test(flag);
    }

    @GetMapping("/test2")
    public void test2(boolean flag){
        testService.multipleMethod(flag);
    }
}
